
public class Homework_605_8 {
	public static void main(String[] args) {
		// 定义一个长度为100的数组，放入1000以后的100个质数
		int a[] = new int[100];
		boolean isNum;
		int count = 0;
		for (int i = 1001; count < 100; i++) {
			isNum = true;
			for (int j = 2; j <= Math.sqrt(i); j++) {
				if (i % j == 0) {
					isNum = false;
					break;
				}
			}
			if (isNum) {
				a[count] = i;
				count++;
			}
		}
		for (int i = 0; i < a.length; i++) {
			System.out.println(a[i]);
		}
	}
}
